<?php
namespace app\common\model;

use think\Model;

class Goods extends Model
{
	public function category()
    {
        return $this->hasOne('GoodsCategory', 'id', 'cateid')->field('catename');
    }
}